initialize

open fun initialize(module: Module)

Initializes the control with its associated module context.

This method is typically called once before the control is first used or made active. It allows the control to set up its internal state, resources, and prepare for operation based on the provided data.

If #isAutoStart() is true, implementations might also trigger their start logic within or immediately after initialization.

Initializes the MarqueeView with the provided module data. This method performs the following actions:
  • Deletes any existing dynamically generated text files for this marquee.
  • Parses module options to configure marquee properties like foreground color, scroll speed, direction, font, and shadow effect.
  • If a playlist exists in the module:
    • Removes any previously generated sources (e.g., from URL or Twitter feeds).
    • Iterates through the playlist sources:
      • Checks smart scheduling conditions if present.
      • If the source type is "Url", initiates a task to download the feed.
      • If the source type is "Text" and has a value, creates a local image file from the text.
      • If the source type is "Twitter", initiates a task to download Twitter statuses.
  • Updates the last update timestamp.

Parameters

module

The module data used to configure and populate the marquee.